package com.itshare.video.pojo.po;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class Course implements Serializable {
    private Long courseId;

    private String title;

    private String coverImage;

    private String description;

    private Integer revision;

    private String createdBy;

    private Date createdTime;

    private String updatedBy;

    private Date updatedTime;

    private String categoryId;

    private String couseDetail;

    private Integer teacherId;

    private BigDecimal price;

    private BigDecimal discountPrice;

    private Integer isHot;

    private Integer attention;

    private Integer isFree;

    private Integer deleteStatus;

    private static final long serialVersionUID = 1L;

    public Long getCourseId() {
        return courseId;
    }

    public Course withCourseId(Long courseId) {
        this.setCourseId(courseId);
        return this;
    }

    public void setCourseId(Long courseId) {
        this.courseId = courseId;
    }

    public String getTitle() {
        return title;
    }

    public Course withTitle(String title) {
        this.setTitle(title);
        return this;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getCoverImage() {
        return coverImage;
    }

    public Course withCoverImage(String coverImage) {
        this.setCoverImage(coverImage);
        return this;
    }

    public void setCoverImage(String coverImage) {
        this.coverImage = coverImage == null ? null : coverImage.trim();
    }

    public String getDescription() {
        return description;
    }

    public Course withDescription(String description) {
        this.setDescription(description);
        return this;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    public Integer getRevision() {
        return revision;
    }

    public Course withRevision(Integer revision) {
        this.setRevision(revision);
        return this;
    }

    public void setRevision(Integer revision) {
        this.revision = revision;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public Course withCreatedBy(String createdBy) {
        this.setCreatedBy(createdBy);
        return this;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy == null ? null : createdBy.trim();
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public Course withCreatedTime(Date createdTime) {
        this.setCreatedTime(createdTime);
        return this;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public String getUpdatedBy() {
        return updatedBy;
    }

    public Course withUpdatedBy(String updatedBy) {
        this.setUpdatedBy(updatedBy);
        return this;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy == null ? null : updatedBy.trim();
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public Course withUpdatedTime(Date updatedTime) {
        this.setUpdatedTime(updatedTime);
        return this;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    public String getCategoryId() {
        return categoryId;
    }

    public Course withCategoryId(String categoryId) {
        this.setCategoryId(categoryId);
        return this;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId == null ? null : categoryId.trim();
    }

    public String getCouseDetail() {
        return couseDetail;
    }

    public Course withCouseDetail(String couseDetail) {
        this.setCouseDetail(couseDetail);
        return this;
    }

    public void setCouseDetail(String couseDetail) {
        this.couseDetail = couseDetail == null ? null : couseDetail.trim();
    }

    public Integer getTeacherId() {
        return teacherId;
    }

    public Course withTeacherId(Integer teacherId) {
        this.setTeacherId(teacherId);
        return this;
    }

    public void setTeacherId(Integer teacherId) {
        this.teacherId = teacherId;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public Course withPrice(BigDecimal price) {
        this.setPrice(price);
        return this;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getDiscountPrice() {
        return discountPrice;
    }

    public Course withDiscountPrice(BigDecimal discountPrice) {
        this.setDiscountPrice(discountPrice);
        return this;
    }

    public void setDiscountPrice(BigDecimal discountPrice) {
        this.discountPrice = discountPrice;
    }

    public Integer getIsHot() {
        return isHot;
    }

    public Course withIsHot(Integer isHot) {
        this.setIsHot(isHot);
        return this;
    }

    public void setIsHot(Integer isHot) {
        this.isHot = isHot;
    }

    public Integer getAttention() {
        return attention;
    }

    public Course withAttention(Integer attention) {
        this.setAttention(attention);
        return this;
    }

    public void setAttention(Integer attention) {
        this.attention = attention;
    }

    public Integer getIsFree() {
        return isFree;
    }

    public Course withIsFree(Integer isFree) {
        this.setIsFree(isFree);
        return this;
    }

    public void setIsFree(Integer isFree) {
        this.isFree = isFree;
    }

    public Integer getDeleteStatus() {
        return deleteStatus;
    }

    public Course withDeleteStatus(Integer deleteStatus) {
        this.setDeleteStatus(deleteStatus);
        return this;
    }

    public void setDeleteStatus(Integer deleteStatus) {
        this.deleteStatus = deleteStatus;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", courseId=").append(courseId);
        sb.append(", title=").append(title);
        sb.append(", coverImage=").append(coverImage);
        sb.append(", description=").append(description);
        sb.append(", revision=").append(revision);
        sb.append(", createdBy=").append(createdBy);
        sb.append(", createdTime=").append(createdTime);
        sb.append(", updatedBy=").append(updatedBy);
        sb.append(", updatedTime=").append(updatedTime);
        sb.append(", categoryId=").append(categoryId);
        sb.append(", couseDetail=").append(couseDetail);
        sb.append(", teacherId=").append(teacherId);
        sb.append(", price=").append(price);
        sb.append(", discountPrice=").append(discountPrice);
        sb.append(", isHot=").append(isHot);
        sb.append(", attention=").append(attention);
        sb.append(", isFree=").append(isFree);
        sb.append(", deleteStatus=").append(deleteStatus);
        sb.append("]");
        return sb.toString();
    }
}